package etnorservice.etnor_service.domain.dto;


import etnorservice.etnor_service.domain.po.DeviceInfo;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

import javax.validation.constraints.NotBlank;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.Entity;
import org.hibernate.annotations.Table;

import java.beans.Transient;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/11/30/11:00
 **/
@Data

public class CommentDTO {
    private Long id;
    private String content;
    private Long userId;
    private Long apiId;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT+8")
    private LocalDateTime createTime;

    private int likeCount;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT+8")
    private LocalDateTime updateTime;
    private String nickname;
    private boolean isAnonymous;

    // 设备信息对象
    private DeviceInfo deviceInfo;

}
